package com.cskaoyan.controller.promote;

import com.cskaoyan.model.vo.BaseRespVo;
import com.cskaoyan.model.vo.promote_ad.BaseData;
import com.cskaoyan.service.promote.WxFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author：23117
 * @date: 2021/12/4
 */
@RestController
@RequestMapping("wx/footprint")
public class WxFootprintController {

@Autowired
WxFootprintService wxFootprintService;
    @RequestMapping("list")
    public BaseRespVo list(Integer page, Integer limit, HttpSession httpSession){
        Integer userid = (Integer) httpSession.getAttribute("uid");

        BaseData data =  wxFootprintService.list(page,limit,userid);
        return BaseRespVo.ok(data);
    }
}

//@RequestMapping("delete")
